package com.qys.livesMall.app.user.controller.sys;

import com.qys.livesMall.app.user.model.dto.sys.AppUserGoldAccountDTO;
import com.qys.livesMall.app.user.service.AppUserGoldAccountService;
import com.qys.livesMall.common.result.R;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户金币账户表 前端控制器
 * </p>
 *
 * @author wzy
 * @since 2023-06-24
 */
@RestController
@Tag(name = "sys-用户金币账户表")
@RequestMapping("/sys/userGoldAccount")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SysUserGoldAccountController {

    @Resource
    private final AppUserGoldAccountService appUserGoldAccountService;

    @PostMapping("/editBatch")
    @Operation(summary = "添加地址信息")
    public R<?> editBatch(@RequestBody @Validated AppUserGoldAccountDTO dto){
       return R.ok(appUserGoldAccountService.editBatch(dto));
    }
}
